<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/news" method="post">
        <input type="hidden" name="pageSize" value="${page.pageSize==null?30:page.pageSize}">
        <input type="hidden" name="pageCurrent" value="${page.pageCurrent==null?1:page.pageCurrent}">
        <input type="hidden" name="orderField" value="${page.orderField==null?"id":page.orderField}">
        <input type="hidden" name="orderDirection" value="${page.orderDirection==null?"asc":page.orderDirection}">  
        
        <div class="bjui-searchBar">
           <button class="btn btn-blue" data-toggle="dialog" data-url="${ctx}/news/view?tabid=${tabid}" data-width="800" data-height="600" value="" data-icon="plus" data-mask="true" data-type="POST" data-title="新增新闻">新增</button>&nbsp;
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
        <table id="tablenews" class="table table-bordered table-hover table-striped table-top">
            <thead>
                <tr>
                    <th style="display:none;" title="id">ID</th>
                    <th data-order-field="title">标题</th>
                    <th data-order-field="createtime">创建时间</th>
                    <th data-order-field="autor">创建人</th>
                    <th title="操作" data-addtool="false" width="150">操作</th>
                </tr>
            </thead>
            <tbody>
            <%
               if (page.pageData != null){
                  for (news in page.pageData){
            %>
	                		<tr class="readonly" data-id="${news.id}">
	                		    <td style="display:none;">${news.id}</td>
				                <td>${news.title}</td>
				                <td>${news.createtime,dateFormat="yyyy-MM-dd"}</td>
				                <td>${news.autor}</td>
				                <td data-noedit="true">
                        		<a href="${ctx}/news/view?id=${news.id}&tabid=${tabid}" data-toggle="dialog" class="btn btn-blue" data-id="${news.id}" data-width="800" data-height="600" value="" data-mask="true" data-type="POST" data-title="编辑用户">编辑</a>
                        		<a href="${ctx}/news/delete?id=${news.id}" data-toggle="doajax" class="btn btn-red row-del" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                    			</td>
				            </tr>
		    <%
		          }
		       }
		    %>
            </tbody>
        </table>
      </div>
    <div class="bjui-pageFooter">
		<div class="pages">
			<span>每页&nbsp;</span>
			<div class="selectPagesize">
				<select data-toggle="selectpicker" data-defval="${page.pageSize}" data-toggle-change="changepagesize" >
		    		<option value="15">15</option>
		        	<option value="30">30</option>
		        	<option value="50">50</option>
		        	<option value="100">100</option>
		    	</select>
			</div>
			<span>&nbsp;条，共  ${page.totalRow} 条</span>
		</div>
		<div class="pagination-box" data-toggle="pagination" data-total="${page.totalRow}" data-page-size="${page.pageSize==null?15:page.pageSize}" data-page-current="${page.pageCurrent==null?1:page.pageCurrent}">
		</div>
	</div>